﻿@using Peninsula.Utility.Extensions
@{
    var adminSession = ViewBag.HouseholdsSession as Peninsula.Web.Models.Sessions.HouseholdsSession;
    string controllerName = ViewContext.RouteData.Values["Controller"].ToString();
    string actionName = ViewContext.RouteData.Values["Action"].ToString();
    string currentName = ViewBag.CurrentName ?? actionName;
    string parentName = ViewBag.ParentName;
    string parentUrl = ViewBag.ParentUrl;
}

<ul class="page-breadcrumb">
    @if (parentName.IsNotNullAndNotWhiteSpace())
    {
        <li id="menu" >
            @if (parentUrl.IsNullOrWhiteSpace())
            {
                @parentName
            }
            else
            {
                <a href="@parentUrl">@parentName</a>
            }
            <i class="fa fa-angle-right"></i>
        </li>
    }
    <li id="menu">
        @{
            if (currentName != "主页")
            {
                @currentName
            }
        }  
    </li>
